# frozen_string_literal: true

module Wechatpay
  class Client
    attr_accessor :id, :secret, :mch_id, :key, :cert_no, :cert_pem, :private_key, :v3_key
    def initialize(options)
      @id = options[:id]
      @secret = options[:secret]
      @mch_id = options[:mch_id]
      @key = options[:key]
      @cert_no = options[:cert_no]
      @cert_pem = options[:cert_pem]
      @private_key = options[:private_key]
      @v3_key = options[:v3_key]
    end

    def pay3
      Pay3.new(self)
    end
  end
end
